home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / mgribtoken.h < prev    next >
C/C++ Source or Header  |  1993-08-03  |  2KB  |  99 lines

  1.  
  2. /* minnegraphics renderman token interface */
  3. void mrti_init();
  4. void mrti( int a1, ... );
  5. void mrti_reset();
  6.  
  7. extern unsigned char *tokenbuffer;
  8. extern unsigned char *ptr;
  9.  
  10. #define STRINGBASE    50     /* strings start at 50 */
  11.  
  12. enum tokentype {
  13.     mr_NULL=0,
  14.  
  15.     /* RI Requests */
  16.     mr_attributebegin,
  17.     mr_attributeend,
  18.     mr_transformbegin,
  19.     mr_transformend,
  20.     mr_identity,
  21.     mr_concattransform, /* Transform T */
  22.     mr_surface,
  23.     mr_shadinginterpolation,
  24.     mr_color,        /* float *ptr (mr_array w/size=3) */
  25.     mr_opacity,        /* float alpha (will become an array) */
  26.     mr_polygon,        /* following arrays must be decalred explicitly */
  27.     mr_patchmesh,   /* Ditto */
  28.     mr_format,        /* follow with mr_intseq */
  29.     mr_projection,
  30.     mr_clipping,
  31.     mr_worldbegin,
  32.     mr_worldend,
  33.     mr_display,
  34.     mr_screenwindow,
  35.     mr_lightsource,
  36.     mr_sphere,
  37.     mr_translate,
  38.     mr_rotate,
  39.     mr_cylinder,
  40.     mr_nupatch,
  41.     mr_shadingrate,
  42.     mr_option,
  43.     mr_illuminate,
  44.     mr_framebegin,
  45.     mr_frameend,
  46.  
  47.     /* Strings */
  48.     mr_P=STRINGBASE,
  49.     mr_N,
  50.     mr_Cs,
  51.     mr_Pw,
  52.     mr_Os,
  53.     mr_st,
  54.     mr_plastic,
  55.     mr_hplastic,
  56.     mr_eplastic,
  57.     mr_heplastic,
  58.     mr_constant,
  59.     mr_ambientlight,
  60.     mr_lightcolor,
  61.     mr_distantlight,
  62.     mr_intensity,
  63.     mr_file,
  64.     mr_rgb,
  65.     mr_rgba,
  66.     mr_Ka,
  67.     mr_Kd,
  68.     mr_Ks,
  69.     mr_specularcolor,
  70.     mr_roughness,
  71.     mr_fov,
  72.     mr_perspective,
  73.     mr_to,
  74.     mr_framebuffer,
  75.  
  76.     /* SPECIAL */    
  77.     mr_array,        /* (full array) size, f,f,.. */
  78.     mr_buildarray,    /* size (subarys follow w/total subsizes==size) */
  79.     mr_parray,      /* subsize, *float, *float, .. */
  80.     mr_subarray3,    /* ptr to aggregate of 3 floats (most common) */
  81.     mr_section,        /* char *string */
  82.     mr_comment,        /* char *string */
  83.     mr_nl,        /* new line */
  84.     mr_int,
  85.     mr_intseq,        /* int numberOfInts, int, int, .. (NOT AN ARRAY!)*/
  86.     mr_float,
  87.     mr_string,
  88.     mr_embed,
  89.     mr_header        /* ## 'header' comments for RIB 1.0 structure */
  90. };
  91.  
  92. struct _table {
  93.     char *name;         /* string representing token, or null */
  94.     int  len;         /* length of string */
  95.     unsigned char reqn;  /* number used to define request/string to renderer */
  96.     int  defined;     /* flags weather request/string has been defined */
  97. };
  98.  
  99.